// =================================================================================================
//
//	CopyEngine Framework
//	Copyright 2012 Eran. All Rights Reserved.
//
//	This program is free software. You can redistribute and/or modify it
//	in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================

/**
 * Created by eran on 14-12-21.
 */
package data
{
    public class BlockVo
    {
        //Basic
        public var type:int;
        public var width:int;
        public var height:int;
        public var x:int;
        public var y:int;
        public var unlockType:int;
        public var unlockLevelNum:int;

        //MonsterBlock
        public var maxBloodNum:int;
        public var defendNum:int;
        public var attackNum:int;
        public var expNum:int;

        //Key
        public var keyPrice:int;

        //SKill Shop
        public var attributeType:int;
        public var priceArray:Array;
        public var addAttributeNumArray:Array;

        public function BlockVo()
        {
        }

        public function fromJSON(_jsonObj:Object):void
        {
            for (var key:String in _jsonObj)
            {
                this[key] = _jsonObj[key];
            }
        }
    }
}
